+2004-10-31 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/win32/gdkprivate-win32.h
+ * gdk/win32/gdkglobals-win32.c
+ * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
+ IS_WIN_NT() macro.
+
+ * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
+
2004-10-31 Matthias Clasen <mclasen@redhat.com>
Add api for image transfer via copy-and-paste (#156408)
+2004-10-31 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/win32/gdkprivate-win32.h
+ * gdk/win32/gdkglobals-win32.c
+ * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
+ IS_WIN_NT() macro.
+
+ * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
+
2004-10-31 Matthias Clasen <mclasen@redhat.com>
Add api for image transfer via copy-and-paste (#156408)
+2004-10-31 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/win32/gdkprivate-win32.h
+ * gdk/win32/gdkglobals-win32.c
+ * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
+ IS_WIN_NT() macro.
+
+ * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
+
2004-10-31 Matthias Clasen <mclasen@redhat.com>
Add api for image transfer via copy-and-paste (#156408)
+2004-10-31 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/win32/gdkprivate-win32.h
+ * gdk/win32/gdkglobals-win32.c
+ * gdk/win32/gdkmain-win32.c: Remove _windows_version and the
+ IS_WIN_NT() macro.
+
+ * gdk/win32/*.c: Use G_WIN32_IS_NT_BASED() from GLib instead.
+
2004-10-31 Matthias Clasen <mclasen@redhat.com>
Add api for image transfer via copy-and-paste (#156408)
* the areas where mask is one. (It is filled with said pattern.)
*/
- if (IS_WIN_NT ())
+ if (G_WIN32_IS_NT_BASED ())
{
GDI_CALL (MaskBlt, (hdc, region->extents.x1, region->extents.y1,
width, height,
x -= x_offset;
y -= y_offset;
- if (!filled && gcwin32->pen_dashes && !IS_WIN_NT ())
+ if (!filled && gcwin32->pen_dashes && !G_WIN32_IS_NT_BASED ())
{
render_line_vertical (hdc, x, y, y+height+1,
gcwin32->pen_width,
}
}
- if (gcwin32->pen_dashes && !IS_WIN_NT ())
+ if (gcwin32->pen_dashes && !G_WIN32_IS_NT_BASED ())
{
for (i = 0; i < nsegs; i++)
{
pts[i].y -= y_offset;
}
- if (gcwin32->pen_dashes && !IS_WIN_NT ())
+ if (gcwin32->pen_dashes && !G_WIN32_IS_NT_BASED ())
{
for (i = 0; i < npoints - 1; i++)
{
* does indicate correctly whether it is the right Control or Alt
* key. But that would be a bit messy.
*/
- if (!IS_WIN_NT () &&
+ if (!G_WIN32_IS_NT_BASED () &&
_gdk_keyboard_has_altgr &&
key_state[VK_CONTROL] & 0x80 &&
key_state[VK_MENU] & 0x80)
* it shouldn't be necessary at all, but win9x would do the clipping
*/
if ( (sw != 8 || sh != 8)
- && !IS_WIN_NT ()) /* HB: the MSDN says it's a Win95 limitation */
+ && !G_WIN32_IS_NT_BASED ()) /* HB: the MSDN says it's a Win95 limitation */
{
/* It seems that it *must* be 8x8, at least on my machine.
* Thus, tile an 8x8 bitmap with the stipple in case it is
logbrush.lbColor = fg;
logbrush.lbHatch = 0;
- if (win32_gc->pen_num_dashes > 0 && !IS_WIN_NT ())
+ if (win32_gc->pen_num_dashes > 0 && !G_WIN32_IS_NT_BASED ())
{
/* The Win9x GDI is rather limited so we either draw dashed
* lines ourselves (only horizontal and vertical) or let them be
GdkAtom _wm_transient_for;
-DWORD _windows_version;
-
gint _gdk_input_ignore_wintab = FALSE;
gint _gdk_max_colors = 0;
_gdk_app_hmodule = GetModuleHandle (NULL);
_gdk_display_hdc = CreateDC ("DISPLAY", NULL, NULL, NULL);
_gdk_root_window = GetDesktopWindow ();
- _windows_version = GetVersion ();
-
- if (getenv ("PRETEND_WIN9X"))
- _windows_version = 0x80000004;
-
- GDK_NOTE (MISC, g_print ("Windows version: %08x\n", (guint) _windows_version));
-
_gdk_input_locale = GetKeyboardLayout (0);
_gdk_input_locale_is_ime = ImmIsIME (_gdk_input_locale);
GetLocaleInfo (MAKELCID (LOWORD (_gdk_input_locale), SORT_DEFAULT),
/* On Win9x GDI calls are implemented in 16-bit code and thus
* don't set the 32-bit error code, sigh.
*/
- if (IS_WIN_NT ())
+ if (G_WIN32_IS_NT_BASED ())
_gdk_win32_api_failed (where, line, api);
else
_gdk_other_api_failed (where, line, api);
extern GdkAtom _wm_transient_for;
-extern DWORD _windows_version;
-#define IS_WIN_NT() (_windows_version < 0x80000000)
-
/* Options */
extern gboolean _gdk_input_ignore_wintab;
extern gint _gdk_max_colors;
size++;
GDK_NOTE (DND, g_print ("...as text: %.40s\n", data));
}
- else if (IS_WIN_NT ())
+ else if (G_WIN32_IS_NT_BASED ())
{
/* On NT, use CF_UNICODETEXT if any non-system codepage char
* present.
return;
/* Try various formats. First the simplest, CF_UNICODETEXT. */
- if (IS_WIN_NT () && (hdata = GetClipboardData (CF_UNICODETEXT)) != NULL)
+ if (G_WIN32_IS_NT_BASED () && (hdata = GetClipboardData (CF_UNICODETEXT)) != NULL)
{
wchar_t *ptr, *wcs, *p, *q;
guchar *data;